package com.sl.design_pattern.simple_factory;

/**
 * Created by 
 */
/**
 * 客户端，使用Api接口
 * @author lisulong on 2019/11/21.
 */
public class Client {

    public static void main(String[] args) {
        //通过简单工厂来获取接口对象
        Api api = SimpleFactory.createApi(1);
        api.operation("正在使用简单工厂，选择条件为1");
    }
}
